package inge_soft.gestoriusNuevo.business.controller.implementation;



import inge_soft.gestoriusNuevo.business.logic.implementation.RandomStringGeneration;
import inge_soft.gestoriusNuevo.persistence.entity.implementation.Usuario;
import inge_soft.gestoriusNuevo.persistence.entity.implementation.UsuarioRegistrado;

public class UsuarioFomulario {

	private RandomStringGeneration rsg = new RandomStringGeneration(4);		
	private Usuario user = new Usuario();
	private UsuarioRegistrado userR = new UsuarioRegistrado();
	private String retypedPassword;
	private String captcha = rsg.getRandomString(), captchaInput;
	
	public UsuarioFomulario() {
		
	}

	public RandomStringGeneration getRsg() {
		return rsg;
	}

	public void setRsg(RandomStringGeneration rsg) {
		this.rsg = rsg;
	}

	public Usuario getUser() {
		return user;
	}

	public void setUser(Usuario user) {
		this.user = user;
	}

	public UsuarioRegistrado getUserR() {
		return userR;
	}

	public void setUsuarioRegistrado(UsuarioRegistrado userR) {
		this.userR = userR;
	}

	public String getRetypedPassword() {
		return retypedPassword;
	}

	public void setRetypedPassword(String retypedPassword) {
		this.retypedPassword = retypedPassword;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public String getCaptchaInput() {
		return captchaInput;
	}

	public void setCaptchaInput(String captchaInput) {
		this.captchaInput = captchaInput;
	}

	public void regenerateCaptcha() {
		this.captcha = rsg.getRandomString();
	}
}
